package com.ftg.learn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author kangjx
 * @since 2023-05-09
 */
@TableName("sys_dept")
@ApiModel(value = "Dept对象", description = "部门表")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("部门主键")
    @TableId(value = "id", type = IdType.AUTO)
    private BigInteger id;

    @ApiModelProperty("上级部门id")
    private BigInteger parentId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("部门人数")
    private Integer deptHeadcount;

    @ApiModelProperty("部门位置")
    private String deptAddress;

    @ApiModelProperty("部门负责人")
    private String deptHead;

    @ApiModelProperty("部门创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty("部门更新时间")
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除(0代表未删除,1代表已删除)")
    private Boolean isDeleted;

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public BigInteger getParentId() {
        return parentId;
    }

    public void setParentId(BigInteger parentId) {
        this.parentId = parentId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getDeptHeadcount() {
        return deptHeadcount;
    }

    public void setDeptHeadcount(Integer deptHeadcount) {
        this.deptHeadcount = deptHeadcount;
    }

    public String getDeptAddress() {
        return deptAddress;
    }

    public void setDeptAddress(String deptAddress) {
        this.deptAddress = deptAddress;
    }

    public String getDeptHead() {
        return deptHead;
    }

    public void setDeptHead(String deptHead) {
        this.deptHead = deptHead;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "Dept{" +
            "id = " + id +
            ", parentId = " + parentId +
            ", deptName = " + deptName +
            ", deptHeadcount = " + deptHeadcount +
            ", deptAddress = " + deptAddress +
            ", deptHead = " + deptHead +
            ", gmtCreate = " + gmtCreate +
            ", gmtModified = " + gmtModified +
            ", isDeleted = " + isDeleted +
        "}";
    }
}
